import java.io.Console;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;

import cs236703.winter2013.hw4.solution.JBefore;


public class main {
	public static void main(String args[]) throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
	Class<?> cl = test2.class;
	Method[] dms = test2.class.getDeclaredMethods();
	//Method[] ms = test2.class.getMethods();
	
	/*while (cl != null) {
		System.out.println("\nDeclared Methods Of: " + cl.getName());
		for (Method m: cl.getDeclaredMethods()) {
			System.out.println(m.getName());
		}
		cl = cl.getSuperclass();
	}*/
	/*System.out.println("getMethods:");
	for (Method m: ms) {
		System.out.println(m.toString());
	}*/
	
	Method m = test2.class.getDeclaredMethod("publicTest2",null);
	JBefore a = m.getAnnotation(JBefore.class);
	System.out.println(a.value()[1]);
	}
}
